﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using Newtonsoft.Json.Linq;


namespace HisGL.CA
{

  public class ResCA<T>
  {
    /// <summary>
    /// 处理结果代码 >=0 成功
    /// </summary>
    public int Code { get; set; }

    /// <summary>
    /// 处理结果描述
    /// </summary>
    public string Message { get; set; }

    public T Data { get; set; }

  }

  public class CALoginInfo
  {
    public string UserToken { get; set; }

    public string UserUid { get; set; }
  }

  public class CASign
  {
        
    public string SignedData { get; set; }

    /// <summary>
    /// picBase64	String	签章图片的base64编码
    /// </summary>
    public string SealPicBase64 { get; set; }

    /// <summary>
    /// 经过base64编码的原文， Convert.ToBase64String(Encoding.UTF8.GetBytes(OriginData));
    /// </summary>
    public string OriginDataBase64 { get; set; }

    /// <summary>
    /// signCert	String	签名证书的base64编码
    /// </summary>
    public string SignCert { get; set; }

    /// <summary>
    /// uid	String	当前操作者工号
    /// </summary>
    public string UserUid { get; set; }

    /// <summary>
    /// userType	Int	0表示证书用户 1表示被授权用户
    /// </summary>
    public int UserType { get; set; }

    /// <summary>
    /// authorizedUserId	Int	被授权用户id，userType为0时该值为空
    /// </summary>
    public string AuthorizedUserId { get; set; }

  }

  public class CAVerifySign
  {
      /// <summary>
      /// 经过base64编码的原文， Convert.ToBase64String(Encoding.UTF8.GetBytes(OriginData));
      /// </summary>
      public string OriginDataBase64 { get; set; }

  }

  public class CASignPdf
  {

    public string SignedPDFBase64 { get; set; }

    /// <summary>
    /// picBase64	String	签章图片的base64编码
    /// </summary>
    public string SealPicBase64 { get; set; }

    /// <summary>
    /// 经过base64编码的原文， Convert.ToBase64String(Encoding.UTF8.GetBytes(OriginData));
    /// </summary>
    public string PDFBase64 { get; set; }

    /// <summary>
    /// signCert	String	签名证书的base64编码
    /// </summary>
    public string SignCert { get; set; }

    /// <summary>
    /// uid	String	当前操作者工号
    /// </summary>
    public string UserUid { get; set; }

    /// <summary>
    /// userType	Int	0表示证书用户 1表示被授权用户
    /// </summary>
    public int UserType { get; set; }

    /// <summary>
    /// authorizedUserId	Int	被授权用户id，userType为0时该值为空
    /// </summary>
    public string AuthorizedUserId { get; set; }

  }

  public class CAQRCode
  {
    
    /// <summary>
    /// qrCodeExpireDate	Int	二维码过期时间（单位秒）
    /// </summary>
    public int QRExpireDate { get; set; }

    /// <summary>
    /// qrCodeBase64	String	二维码图片的Base64编码
    /// </summary>
    public string QRCodeBase64 { get; set; }

    /// <summary>
    /// qrCodeIdentity	String	二维码唯一标识
    /// </summary>
    public string QRCodeIdentity { get; set; }

    /// <summary>
    /// qrCodeContent	String	二维码表示的所有类JSON文本信息（去掉协议前缀，剩下未JSON的OBJECT），见二维码内容
    /// </summary>
    public string QRCodeContent { get; set; }

  }

}